<?php

/**
 * Name: 员工验证层
 * User: Silent
 * Date: 2025-09-20
 * Time: 22:44:12
 */

namespace App\Http\Requests\Config;

use Illuminate\Foundation\Http\FormRequest;

class EmployeeRequest extends FormRequest
{
    public function authorize()
    {
        return true;
    }

    public function rules()
    {
        return [
            'username' => 'required|string|max:50',
            'email'    => 'required|string|email|max:100',
            'phone'    => 'required|string|max:20',
            'name'     => 'required|string|max:50',
            'team'     => 'required|string|max:50',
            'position' => 'required|string|max:50',
        ];
    }
}
